<!DOCTYPE html>
<html>
<head lang="zh-CN">
    <meta charset="UTF-8">
    <title>股票池</title>
    <script type="text/javascript" src="js/pageLoadBefore.js"></script>
    <link rel="stylesheet" href="css/style.css"/>
</head>
<body>
<!--顶部-->
<div class="topBar ub ub-ae MainBC">
    <div class="logo"></div>
    <div class="ub path"><a >首页</a><span> > </span><a >用户中心</a><span> > </span><span>股票池</span></div>
    <div class="ub-f"></div>
    <div class="ub ub-ac pExit">
        <div class="exit"></div>
        <div>退出登录</div>
    </div>
</div>
<!--浮标-->
<div class="fixedSub">
    <div class="icon icon-top" onclick="toTop();"></div>
    <div class="icon icon-phone"></div>
    <div class="icon icon-chat"></div>
    <div class="icon icon-user" onclick="window.location.href='serveServer.html'"></div>
</div>
<!--主体-->
<div class="ub">
    <!--左侧菜单-->
    <div class="nav">
        <div class="ub ub-ac navItem active">
            <div><img src="img/zuhe.png"></div>
            <div>组合</div>
            <div class="ub-f ub ub-pe"><img src="img/angle.png"></div>
        </div>
        <ul>
            <li class="active"><a >股票池</a></li>
            <li><a href="operateStrategy.html">操作策略</a></li>
        </ul>
        <div class="ub ub-ac navItem">
            <div><img src="img/fuwu.png"></div>
            <div>服务</div>
            <div class="ub-f ub ub-pe"><img src="img/angle.png"></div>
        </div>
        <ul>
            <li><a href="serveTeacher.html">我要找老师</a></li>
            <li><a href="serveServer.html">我要找客服</a></li>
            <li><a href="serverMade.html">我要去定制</a></li>
        </ul>
        <div class="ub ub-ac navItem">
            <div><img src="img/zhanghu.png"></div>
            <div>我的账户</div>
            <div class="ub-f ub ub-pe"><img src="img/angle.png"></div>
        </div>
        <ul>
            <li><a href="myOrder.html">我的订单</a></li>
            <li><a href="serverVIP.html">我要升级VIP</a></li>
            <li><a href="msgNotify.html">消息通知</a></li>
            <li><a href="wxSever.html">微信服务</a></li>
        </ul>
        <div class="ub ub-ac navItem">
            <div><img src="img/kefu.png"></div>
            <div>我的客服</div>
            <div class="ub-f ub ub-pe"><img src="img/angle.png"></div>
        </div>
        <div style="padding-top: 15px;">
            <div class="ub ub-ac ub-pc">
                <img src="img/src/serverPic.png">
            </div>
            <div class="ub ub-ac ub-pc severInfo">
                张颖&nbsp;&nbsp;工号（8384）
            </div>
            <div class="ub ub-ac ub-pc severInfo">
                服务热线：025-962155
            </div>
        </div>
    </div>
    <!--正体-->
    <div class="container ub-f ub ub-ver">
        <!--欢迎-->
        <div class="userWe areaBC margin-b">
            <span class="text-warn">13*****647</span> 下午好，欢迎来到天鼎投资！<br>
            <img src="img/bell.png">我们已经为您服务了<span class="text-warn">30</span>天，还有<span
                class="text-warn">50</span>天到期，若对我们的服务还满意，请立即续费，以免错过最佳投资时机。
            <div class="renew">立即续费</div>
        </div>
        <div class="ub">
            <!--正体左 文章-->
            <div class="containL ub ub-ver">
                <!--文章题栏-->
                <div class="margin-b areaBC titleLine ub ub-ac">
                    <div class="titleIco"><img src="img/pool.png"></div>
                    <span>股票池</span>
                </div>
                <div class="areaBC ub ub-ver content">
                    <div class="ub">
                        <div class="tab" onclick="iTab(this,'table1')">持仓记录</div>
                        <div class="tab active" onclick="iTab(this,'table2')">交易明细</div>
                    </div>
                    <div class="tabContain">
                        <table id="table1" class="table-1 uHide">
                            <tr>
                                <td>华夏幸福<br>600340</td>
                                <td>买入时间 02-20 14:49</td>
                                <td>买入价格 26.4</td>
                                <td>仓位2成</td>
                                <td>
                                    <a>
                                        <div class="ico-look"></div>
                                        查看报告
                                    </a>
                                    <div class="reportBox">
                                        <table>
                                            <tr>
                                                <td>今天09:37</td>
                                                <td>华夏幸福大股东溢价华夏幸福大股东溢价华夏幸福大股东溢价华夏幸福大股东溢价</td>
                                            </tr>
                                            <tr>
                                                <td>今天09:37</td>
                                                <td>华夏幸福大股东溢价</td>
                                            </tr>
                                            <tr>
                                                <td>今天09:37</td>
                                                <td>华夏幸福大股东溢价</td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>华夏幸福<br>600340</td>
                                <td>买入时间 02-20 14:49</td>
                                <td>买入价格 26.4</td>
                                <td>仓位2成</td>
                                <td>
                                    <a>
                                        <div class="ico-look"></div>
                                        查看报告
                                    </a>
                                    <div class="reportBox">
                                        <table>
                                            <tr>
                                                <td>今天09:37</td>
                                                <td>华夏幸福大股东溢价华夏幸福大股东溢价华夏幸福大股东溢价华夏幸福大股东溢价</td>
                                            </tr>
                                            <tr>
                                                <td>今天09:37</td>
                                                <td>华夏幸福大股东溢价</td>
                                            </tr>
                                            <tr>
                                                <td>今天09:37</td>
                                                <td>华夏幸福大股东溢价</td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>华夏幸福<br>600340</td>
                                <td>买入时间 02-20 14:49</td>
                                <td>买入价格 26.4</td>
                                <td>仓位2成</td>
                                <td>
                                    <a>
                                        <div class="ico-look"></div>
                                        查看报告
                                    </a>
                                    <div class="reportBox">
                                        <table>
                                            <tr>
                                                <td>今天09:37</td>
                                                <td>华夏幸福大股东溢价华夏幸福大股东溢价华夏幸福大股东溢价华夏幸福大股东溢价</td>
                                            </tr>
                                            <tr>
                                                <td>今天09:37</td>
                                                <td>华夏幸福大股东溢价</td>
                                            </tr>
                                            <tr>
                                                <td>今天09:37</td>
                                                <td>华夏幸福大股东溢价</td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>华夏幸福<br>600340</td>
                                <td>买入时间 02-20 14:49</td>
                                <td>买入价格 26.4</td>
                                <td>仓位2成</td>
                                <td>
                                    <a>
                                        <div class="ico-look"></div>
                                        查看报告
                                    </a>
                                    <div class="reportBox">
                                        <table>
                                            <tr>
                                                <td>今天09:37</td>
                                                <td>华夏幸福大股东溢价华夏幸福大股东溢价华夏幸福大股东溢价华夏幸福大股东溢价</td>
                                            </tr>
                                            <tr>
                                                <td>今天09:37</td>
                                                <td>华夏幸福大股东溢价</td>
                                            </tr>
                                            <tr>
                                                <td>今天09:37</td>
                                                <td>华夏幸福大股东溢价</td>
                                            </tr>
                                        </table>
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <table id="table2" class="table-1">
                            <tr>
                                <td class="buyIn">买入</td>
                                <td>华夏幸福时刻<br>600340</td>
                                <td>买入时间 02-20 14:49</td>
                                <td>买入价格 26.4</td>
                            </tr>
                            <tr>
                                <td class="sellOut">卖出</td>
                                <td>南京熊猫<br>600340</td>
                                <td>买入时间 02-20 14:49</td>
                                <td>买入价格 26.4</td>
                            </tr>
                            <tr>
                                <td class="buyIn">买入</td>
                                <td>华夏幸福<br>600340</td>
                                <td>买入时间 02-20 14:49</td>
                                <td>买入价格 26.4</td>
                            </tr>
                            <tr>
                                <td class="sellOut">卖出</td>
                                <td>南京熊猫<br>600340</td>
                                <td>买入时间 02-20 14:49</td>
                                <td>买入价格 26.4</td>
                            </tr>
                            <tr>
                                <td class="buyIn">买入</td>
                                <td>华夏幸福<br>600340</td>
                                <td>买入时间 02-20 14:49</td>
                                <td>买入价格 26.4</td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
            <!-- 正体右 咨询-->
            <div class="containR ub ub-ver">
                <div class="margin-b">
                    <div class="MainBC ttLine">最新推荐</div>
                    <div class="areaBC con-1">
                        <table class="table-2">
                            <tr>
                                <td></td>
                                <td class="text-warn"></td>
                                <td>
                                    <div class="MainBC markBo"></div>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td class="text-warn"></td>
                                <td>
                                    <div class="MainBC markBo"></div>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td class="text-warn"></td>
                                <td>
                                    <div class="MainBC markBo"></div>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="margin-b">
                    <div class="MainBC ttLine">财经资讯</div>
                    <div class="areaBC con-2">
                        <div class="ub ub-ver">
                            <div class="newsItem"><a onclick="layNews(this)">改革才是防止风险的第一要务</a></div>
                            <div class="newsItem"><a onclick="layNews(this)">“十三五”：湖南重点发展战略性新兴产业</a></div>
                            <div class="newsItem"><a onclick="layNews(this)">中国经济缓中趋稳稳中向好</a></div>
                            <div class="newsItem"><a onclick="layNews(this)">工信部与辽宁省签署战略合作协议</a></div>
                            <div class="newsItem"><a onclick="layNews(this)">改革才是防止风险的第一要务</a></div>
                            <div class="newsItem"><a onclick="layNews(this)">“十三五”：湖南重点发展战略性新兴产业</a></div>
                            <div class="newsItem"><a onclick="layNews(this)">“中国城市复兴研究院”揭牌仪式在北京举行改革才是防止风险的第一要务</a></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--底部-->
<div class="footer"></div>

<!--蒙版-->
<div id="masking">
    <div class="msgBox">
        <div class="ub">
            <div class="msgIcon"></div>
            <div class="ub-f">
                1股短期趋势呈上升形态，短均线均为多头排列，今日带量向上试探半年线，5
                日线上扬，融资盘增加，加上业绩良好，基本面较为优秀，因此看好短线趋势。
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="vendor/layer/layer.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript">

    (function () {//页面消息弹窗
        var $m = $('#masking'), $box = $('.msgBox');
        $m.css({//半透明背景
            width: '100%',
            height: '100%',
            position: 'fixed',
            left: 0,
            top: 0,
            padding: 0,
            margin: 0,
            'background-color': 'rgba(0, 0, 0, 0.6)',
            display: 'block',
            'z-index': 1000
        });
        $m.on('click', function (e) {//点击背景时隐藏消息
            $m.css('display', 'none');

        });
        $box.on('click', function (e) {//点击消息阻止事件冒泡
            e.stopPropagation();
        });
    })();


    (function(){//定时获取股票指数
        function timer(){
            $.ajax({
                url:"http://hq.sinajs.cn/list=s_sh000001,s_sz399001,s_sz399006",
                dataType:"script",
                cache:"false",
                type:"GET",
                success:function(data){
                    hq_str_s_sh000001Arry = hq_str_s_sh000001.split(',');
                    hq_str_s_sz399001Arry = hq_str_s_sz399001.split(',');
                    hq_str_s_sz399006Arry = hq_str_s_sz399006.split(',');
                    var $dom = $('.table-2 tr');
                    var dataArry = [hq_str_s_sh000001Arry,hq_str_s_sz399001Arry,hq_str_s_sz399006Arry];
                    for(var i=0;i<3;i++){
                        if(dataArry[i][2]>0){
                            var data_percentage="+"+parseFloat(dataArry[i][3]).toFixed(2)+"%";
                        }
                        else{
                            var data_percentage=parseFloat(dataArry[i][3]).toFixed(2)+"%";
                            $($dom[i]).find('td').eq(1).css('color','green');
                            $($dom[i]).find('td').eq(2).find('.markBo').css('background-color','green');
                        }
                        $($dom[i]).find('td').eq(0).text(dataArry[i][0]);
                        $($dom[i]).find('td').eq(1).text(parseFloat(dataArry[i][1]).toFixed(2));
                        $($dom[i]).find('td').eq(2).find('.markBo').text(data_percentage);
//                        console.log(dataArry[i][0]+parseFloat(dataArry[i][1]).toFixed(2)+data_percentage+'##'+i);
                    }
                }
            });
        }
        timer();
        setInterval(timer,3000);
    })();


</script>
</body>
</html>